From 4fb00ace56456c9e576b59821e033951e8cbfc7b Mon Sep 17 00:00:00 2001 From: "br260@laudney.cl.cam.ac.uk" Date: Thu, 13 Nov 2003 16:34:35 +0000 Subject: [PATCH] bitkeeper revision 1.601 (3fb3b29bWxzXUo39xGgX9TIpE757xg) Cleanup. --- tools/internal/dom0_defs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/internal/dom0_defs.h b/tools/internal/dom0_defs.h index 0c0c4080dd..0aacbd732b 100644 --- a/tools/internal/dom0_defs.h +++ b/tools/internal/dom0_defs.h @@ -51,7 +51,7 @@ static inline int do_privcmd(unsigned int cmd, unsigned long data) PERROR("Error when executing privileged control ioctl"); #endif close(fd); - return -1; + return ret; } close(fd); @@ -79,7 +79,7 @@ static inline int do_dom0_op(dom0_op_t *op) goto out1; } - if ( do_xen_hypercall(&hypercall) < 0 ) + if ( (ret = do_xen_hypercall(&hypercall)) < 0 ) { if ( errno == EACCES ) fprintf(stderr, "Dom0 operation failed -- need to" @@ -107,7 +107,7 @@ static inline int do_network_op(network_op_t *op) goto out1; } - if ( do_xen_hypercall(&hypercall) < 0 ) + if ( (ret = do_xen_hypercall(&hypercall)) < 0 ) goto out2; ret = 0; -- 2.30.2